package com.ruoyi.petrol.service.impl;

import com.ruoyi.petrol.mapper.ChePetrolInfoMapper;
import com.ruoyi.petrol.service.IChePetrolInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName ChePetrolInfoServiceImpl
 * @Description TODO
 * @Author fyd
 * @Date 2024年06月12日 20:45
 * @Version 1.0
 */
@Service
public class ChePetrolInfoServiceImpl implements IChePetrolInfoService {
    @Autowired
    private ChePetrolInfoMapper chePetrolInfoMapper;
    @Override
    public Map<Object, Object> selectPhotoById(Map map) {
        List<Map<Object, Object>> listP = chePetrolInfoMapper.findPhotoById(map);
        HashMap<Object, Object> map1 = new HashMap<>();
        map1.put("listP",listP);
        return map1;
    }

    @Override
    public Map<Object, Object> selectTypePriceById(Map map) {
        List<Map<Object, Object>> listTP = chePetrolInfoMapper.findTypePriceById(map);
        HashMap<Object, Object> map2 = new HashMap<>();
        map2.put("listTP",listTP);
        return map2;
    }
}
